﻿<header>
    <div class="content-wrapper">
        <div class="float-left">
            <p class="site-title">
                <a href="~/">ASP.NET Web API</a></p>
        </div>
    </div>
</header>
<div id="body">
    <h2>SessionID:@Context.Request.Cookies["ASP.NET_SessionId"].Value</h2>
    <h2>Name:@Session["name"]</h2>
    <h2>Age:@Session["age"]</h2>
    <h3>Timer:@Session["Timer"]</h3>

    @using (Html.BeginForm())
    {
        <fieldset>
            <label>Name: @Html.TextBox("name", "", new { autocomplete = "off" })</label><br />
            <label>Age: @Html.TextBox("age", "", new { autocomplete = "off" })</label><br />
            <input type="submit" value="Save" />
        </fieldset>
    }
    
    @using (Html.BeginForm("Abandonsession", "Home"))
    {
        <input type="submit" value="Abandon Session" />
    }

</div>
